package com.nanyang.tms.dao.saleprice;

import com.nanyang.tms.domain.saleprice.SalePriceWeightRecordVO;
import com.nanyang.tms.domain.saleprice.SaleWeightRecordDO;
import com.nanyang.tms.domain.saleprice.SaleWeightRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>SaleWeightRecordDao.java</p>
 * <p>Description:()</p>
 *
 * @author lv
 * @date 2022年11月12日 下午05:46:06
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface SaleWeightRecordDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(SaleWeightRecordDO record);
    /**
     * <p>selectByPrimaryKey</p>
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return SaleWeightRecordDO
     */
    SaleWeightRecordDO selectByPrimaryKey(Long id);

    /**
     * <p>updateByPrimaryKeySelective</p>
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(SaleWeightRecordDO record);
    /**
     *
     * @param weightCode
     * @return
     */
    List<SaleWeightRecordVO> selectByCode(String weightCode);
    
    List<SalePriceWeightRecordVO> getWeightRecord(@Param(value = "saleCode") String saleCode,@Param(value = "partCode") String partCode);
}